package com.bj58.di.config;

import com.google.inject.AbstractModule;
import com.google.inject.name.Names;

public class FieldConfigutation extends AbstractModule {

	@Override
	protected void configure() {
		//bind(String.class).annotatedWith(Names.named("ip")).toInstance("192.168.88.12");
		//bind(Integer.class).annotatedWith(Names.named("port")).toInstance(8080);
		bindConstant().annotatedWith(Names.named("ip")).to("192.168.88.13");
		bindConstant().annotatedWith(Names.named("port")).to(8080);
	}

}
